package com.example;

import java.time.LocalDateTime;
import java.time.ZoneOffset;

public class Demo {

    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        LocalDateTime localDateTime = now.minusMonths(10);
        System.out.println(localDateTime.toEpochSecond(ZoneOffset.of("+8")));
    }
}
